import { createApp } from 'vue'
// import '@/style.css'
import App from './App.vue'

//使用element-plus UI组件库
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import 'virtual:svg-icons-register'
import gloablComponent from './components/index'

import '@/styles/index.scss'
import pinia from './store'

import piniaPersist from 'pinia-plugin-persist'
pinia.use(piniaPersist)

import router from './router'

const app = createApp(App)
app.use(ElementPlus, {
  locale: zhCn,
})

app.use(pinia)
app.use(router)
app.use(gloablComponent)
app.mount('#app')
